package com.cloudcc.mobile.adapter;

import android.content.Context;

import com.cloudcc.cloudframe.adapter.CommonAdapter;
import com.cloudcc.cloudframe.adapter.ViewHolder;
import com.cloudcc.mobile.R;
import com.cloudcc.mobile.entity.market.MarketActivityEntity;

/**
 * @Description: 对象列表适配器
 * @author wangzhiqiang
 * @date 2015-11-18 上午11:05:26
 * 
 */
public class MarketActivityListAdapter extends CommonAdapter<MarketActivityEntity> {

	public MarketActivityListAdapter(Context mContext) {
		super(mContext);
	}

	@Override
	public void convert(ViewHolder holder, MarketActivityEntity t) {
		holder.setText(R.id.tv1, t.getName());
		holder.setText(R.id.tv2, t.getCreatedate());
	}

	@Override
	public int getLayoutId() {
		return R.layout.marketactivity_list_item;
	}

}
